import Vue from 'vue'
import Router from 'vue-router'
const Index = () => import('@/components/Index')
const Infos = () => import('@/components/Infos')
const Infodetail = () => import('@/components/Infodetail')
const SearchResult = () => import('@/components/SearchResult')
const HotJobs = () => import('@/components/HotJobs')
const Myorder = () => import('@/components/Myorder')
const Locations = () => import('@/components/Locations')
const Login = () => import('@/components/Login')
const LoginPass = () => import('@/components/LoginPass')
const LoginBind = () => import('@/components/LoginwxBind')
const ResetPass = () => import('@/components/ResetPass')
const MyCenter = () => import('@/components/MyCenter')
const Aboutus = () => import('@/components/Aboutus')
const Setting = () => import('@/components/Setting')
const Consultant = () => import('@/components/Consultant')
const Mytask = () => import('@/components/Mytask')
const InviteRecords = () => import('@/components/InviteRecords')
const Recoreward = () => import('@/components/Recoreward')
const Selectcity = () => import('@/components/Selectcity')
const Resume = () => import('@/components/Resume')
const Resumeedit = () => import('@/components/Resumeedit')
const Collect = () => import('@/components/Collect')
const Wallet = () => import('@/components/Wallet')
const Walletdetail = () => import('@/components/Walletdetail')
const Verify = () => import('@/components/Verify')
const Transcord = () => import('@/components/Transcord')
const Addbankcard = () => import('@/components/Addbankcard')
const AddbankcardDetail = () => import('@/components/Addbankcarddetail')
const Jobdetail = () => import('@/components/Jobdetail')
const Employment = () => import('@/components/Employment')
const Locationdetail = () => import('@/components/Locationdetail')
const Gangwei = () => import('@/components/Gangwei')
const Newreward = () => import('@/components/Newreward')
const Message = () => import('@/components/Message')
const Expectjob = () => import('@/components/Expectjob')
const Addexpirence = () => import('@/components/Addexpirence')
const Overtime = () => import('@/components/Overtime')
const Addovertime = () => import('@/components/Addovertime')
const Addleave = () => import('@/components/Addleave')
const Overtimedetail = () => import('@/components/Overtimedetail')
const Overtimeedit = () => import('@/components/Overtimeedit')
const Useragree = () => import('@/components/Useragree')
const Choosecity = () => import('@/components/Choosecity')
const Advise = () => import('@/components/Advise')
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '工作',
      component: Index    
    },
    {
      path: '/index',
      name: '工作',
      component: Index    
    },
    {
      path: '/infos',
      name: '资讯',
      component: Infos
    },
    {
      path: '/message',
      name: '消息',
      component: Message
    },
    {
      path: '/infodetail',
      name: '资讯详情',
      component: Infodetail
    },
    {
      path: '/searchresult',
      name: '搜索结果',
      component: SearchResult
    },
    {
      path: '/hotjobs',
      name: '热门招聘',
      component: HotJobs
    },
    {
      path: '/locations',
      name: '服务站点',
      component: Locations
    },
    {
      path: '/locationdetail',
      name: '站点详情',
      component: Locationdetail     
    },
    {
      path: '/login',
      name: '手机登录',
      component: Login    
    },
    {
      path: '/loginpass',
      name: '密码登录',
      component: LoginPass    
    },
    {
      path: '/bindphone',
      name: '绑定手机号',
      component: LoginBind    
    },
    {
      path: '/resetpass',
      name: '重置密码',
      component: ResetPass
    },
    {
      path: '/mycenter',
      name: '个人中心',
      component: MyCenter
    },
    {
      path: '/aboutus',
      name: '关于我们',
      component: Aboutus
    },
    {
      path: '/setting',
      name: '设置',
      component: Setting
    },
     {
      path: '/consultant',
      name: '就业顾问',
      component: Consultant
    },
    {
      path: '/mytask',
      name: '我的任务',
      component: Mytask
    },
    {
      path: '/inviterecords',
      name: '邀请记录',
      component: InviteRecords
    },
    {
      path: '/recoreward',
      name: '推荐有奖',
      component: Recoreward
    },
    {
      path: '/selectcity',
      name: '意向城市',
      component: Selectcity
    },
    {
      path: '/resume',
      name: '简历',
      component: Resume
    },
    {
      path: '/resumeedit',
      name: '我的简历',
      component: Resumeedit
    },
    {
      path: '/collect',
      name: '我的收藏',
      component: Collect
    },
    {
      path: '/myorder',
      name: '我的预约',
      component: Myorder 
    },
    {
      path: '/wallet',
      name: '我的钱包',
      component: Wallet
    }, 
    {
      path: '/walletdetail',
      name: '我的账户',
      component: Walletdetail
    }, 
    {
      path: '/verify',
      name: '视频认证',
      component: Verify   
    },
    {
      path: '/transcord',
      name: '提现记录',
      component: Transcord  
    }, 
    {
      path: '/addbankcard',
      name: '银行卡',
      component: Addbankcard     
    },
    {
      path: '/addbankcarddetail',
      name: '添加银行卡',
      component: AddbankcardDetail     
    },
    {
      path: '/jobdetail',
      name: '用工详情',
      component: Jobdetail  
    }, 
    {
      path: '/employment',
      name: '灵活用工',
      component: Employment     
    },
    {
      path: '/gangwei/:id',
      name: '岗位详情',
      component: Gangwei          
    }, 
    {
      path: '/newreward',
      name: '新人红包',
      component: Newreward     
    },
    {
      path: '/expectjob',
      name: '求职意向',
      component: Expectjob     
    },
    {
      path: '/expectjob/:id',
      name: '求职意向',
      component: Expectjob     
    },
    {
      path: '/addexpirence',
      name: '添加工作经历',
      component: Addexpirence     
    },
    {
      path: '/overtimedetail',
      name: '加班请假明细',
      component: Overtimedetail     
    },
    {
      path: '/overtime',
      name: '记加班',
      component: Overtime     
    },
    {
      path: '/addovertime',
      name: '加班',
      component: Addovertime     
    },
    {
      path: '/addleave',
      name: '请假',
      component: Addleave     
    },
    {
      path: '/overtimeedit/:id',
      name: '记加班',
      component: Overtimeedit     
    },
    {
      path: '/uagree',
      name: '用户协议',
      component: Useragree     
    },
    {
      path: '/advise',
      name: '意见反馈',
      component: Advise     
    },
    {
      path: '/choosecity',
      name: '选择城市',
      component: Choosecity     
    }
  ]
})
